package org.ltt.rbac.service.impl;

import org.ltt.rbac.model.User;
import org.ltt.rbac.service.LoginService;
import org.ltt.rbac.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: ltt
 * @Date: 2020/5/26 15:03
 * 登录逻辑逻辑层
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private UserService userService;

    @Override
    public String login(User user) {
        //登录逻辑步骤一
        userService.loadUserByUsername(user.getUsername());
        return "";
    }

    @Override
    public String loginByPhone(String phone, String code) {
        return "";
    }

    @Override
    public String loginByEmail(String email, String code) {
        return "";
    }
}
